package weather.language.forecast;

import java.util.*;

import weather.dictionary.*;

public class CommonGroup extends ConditionsGroup
{
	public CommonGroup()
	{
		super("ALL", prepareKeywords());
		
		for (Condition c: ConditionGroupsDictionary.instance().getElements())
			addCondition(c);
	}
	
	private static Set<String> prepareKeywords()
	{
		Set<String> keywords = new HashSet<String>();
		
		keywords.add("weather");
		keywords.add("forecast");
		
		return keywords;
	}

	@Override
	public void prepareQuestion(WeatherQuestion weatherQ)
	{
		super.prepareQuestion(weatherQ);
		
		weatherQ.setQuestionAboutHighTemperature(true);
		weatherQ.setQuestionAboutLowTemperature(true);
		weatherQ.setQuestionAboutAverageTemperature(true);
	}
}
